#include "msgDlgMng.h"

msgDlgMng::msgDlgMng(void)
{
}

msgDlgMng::~msgDlgMng(void)
{
}

msgDialog* msgDlgMng::get(const QString& ip )
{
	QMap<QString,msgDialog*>::const_iterator a= _windows.find(ip);
	if (a!=_windows.end())
	{
		return a.value();
	}
	msgDialog* temp=new msgDialog(); 
	_windows.insert(ip,temp);

	return temp;
}

int msgDlgMng::close(const QString& ip )
{
	return _windows.remove(ip);
}

